﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Packager
{
	public partial class FormLink : Form
	{
		public FormLink()
		{
			InitializeComponent();
		}

		public Milan.Deploy.Package.Link OurLink = new Milan.Deploy.Package.Link();

		private void FormLink_Load(object sender, EventArgs e)
		{
			textBoxDescription.Text = OurLink.Description;
			textBoxCurrentDirectory.Text = OurLink.CurrentDirectory;
			textBoxIconLocation.Text = OurLink.IconLocation;
			textBoxTarget.Text = OurLink.Target;
			textBoxShortcut.Text = OurLink.Shortcut;
			numericUpDownIcon.Value = OurLink.IconIndex;
		}

		private void buttonOK_Click(object sender, EventArgs e)
		{
			OurLink.Description = textBoxDescription.Text;
			OurLink.CurrentDirectory = textBoxCurrentDirectory.Text;
			OurLink.IconLocation = textBoxIconLocation.Text;
			OurLink.Target = textBoxTarget.Text;
			OurLink.Shortcut = textBoxShortcut.Text;
			OurLink.IconIndex = (int)numericUpDownIcon.Value;
		}
	}
}
